package com.jxdinfo.hussar.example.outsourcereportandcertimanage.certificatedownloadstatistics.wsdcertidloadauditstatistic.controller;

import com.jxdinfo.hussar.support.mp.base.controller.HussarBaseController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jxdinfo.hussar.support.audit.core.annotations.AuditLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jxdinfo.hussar.support.audit.core.enums.AuditEventGrade;
import com.jxdinfo.hussar.support.audit.core.enums.AuditEventType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.PostMapping;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Arrays;
import com.jxdinfo.hussar.example.outsourcereportandcertimanage.certificatedownloadstatistics.wsdcertidloadauditstatistic.service.WsdCertiDloadAuditStatisticService;
import com.jxdinfo.hussar.example.outsourcereportandcertimanage.certificatedownloadstatistics.wsdcertidloadauditstatistic.vo.WsdCertiDloadAuditStatisticPageVO;
import org.springframework.beans.factory.annotation.Autowired;
import com.jxdinfo.hussar.example.outsourcereportandcertimanage.certificatedownloadstatistics.wsdcertidloadauditstatistic.model.WsdCertiDloadAuditStatistic;
import com.jxdinfo.hussar.example.outsourcereportandcertimanage.certificatedownloadstatistics.wsdcertidloadauditstatistic.dto.WsdCertiDloadAuditStatisticSelectCondition;
import com.jxdinfo.hussar.platform.core.base.apiresult.ApiResponse;

/**
 * 证书下载审核统计控制器
 */
@RestController(value = "outsourcereportandcertimanage.certificatedownloadstatistics.wsdcertidloadauditstatistic.WsdCertiDloadAuditStatisticController")
@AuditLog(moduleName = "证书下载审核统计")
@RequestMapping(value = "/outsourceReportAndCertiManage/certificateDownloadStatistics/wsdCertiDloadAuditStatistic")
public class WsdCertiDloadAuditStatisticController extends HussarBaseController<WsdCertiDloadAuditStatistic, WsdCertiDloadAuditStatisticService> {

    private static final Logger logger = LoggerFactory.getLogger(WsdCertiDloadAuditStatisticController.class);

    @Autowired
    private WsdCertiDloadAuditStatisticService wsdCertiDloadAuditStatisticService;

    /**
     * 证书下载审核统计表格自定义查询（带分页）
     *
     * @return 查询结果
     */
    @AuditLog(moduleName = "证书下载审核统计", eventDesc = "表格自定义查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("ConditionFilterPage")
    public ApiResponse<WsdCertiDloadAuditStatisticPageVO> ConditionFilterPage(@RequestBody WsdCertiDloadAuditStatisticSelectCondition wsdCertiDloadAuditStatisticSelectCondition) {
        return wsdCertiDloadAuditStatisticService.ConditionFilterPage(wsdCertiDloadAuditStatisticSelectCondition);
    }

    /**
     * 证书下载审核统计表格批量删除
     *
     * @param ids id数组
     * @return 删除成功标识
     */
    @AuditLog(moduleName = "证书下载审核统计", eventDesc = "批量删除", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.UPDATE)
    @PostMapping("flagDelete")
    public ApiResponse<Boolean> flagDelete(@RequestParam(value = "ids") String[] ids) {
        return wsdCertiDloadAuditStatisticService.flagDelete(Arrays.asList(ids));
    }

    /**
     * 证书下载审核统计表格自定义查询（带分页）
     *
     * @return 查询结果
     */
    @AuditLog(moduleName = "证书下载审核统计", eventDesc = "表格自定义查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("ConditionFilterPage_order_custom")
    public ApiResponse<WsdCertiDloadAuditStatisticPageVO> ConditionFilterPage_order_custom(@RequestBody WsdCertiDloadAuditStatisticSelectCondition wsdCertiDloadAuditStatisticSelectCondition) {
        return wsdCertiDloadAuditStatisticService.ConditionFilterPage_order_custom(wsdCertiDloadAuditStatisticSelectCondition);
    }

    /**
     * 证书下载审核统计表格自定义查询（带分页）
     *
     * @return 查询结果
     */
    @AuditLog(moduleName = "证书下载审核统计", eventDesc = "表格自定义查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("ConditionFilterwsdCertiDloadAuditStatisticSort_1Page")
    public ApiResponse<WsdCertiDloadAuditStatisticPageVO> ConditionFilterwsdCertiDloadAuditStatisticSort_1Page(@RequestBody WsdCertiDloadAuditStatisticSelectCondition wsdCertiDloadAuditStatisticSelectCondition) {
        return wsdCertiDloadAuditStatisticService.ConditionFilterwsdCertiDloadAuditStatisticSort_1Page(wsdCertiDloadAuditStatisticSelectCondition);
    }

    /**
     * 证书下载审核统计表格自定义查询（带分页）
     *
     * @return 查询结果
     */
    @AuditLog(moduleName = "证书下载审核统计", eventDesc = "表格自定义查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("ConditionFilterwsdCertiDloadAuditStatisticSort_1Page_order_custom")
    public ApiResponse<WsdCertiDloadAuditStatisticPageVO> ConditionFilterwsdCertiDloadAuditStatisticSort_1Page_order_custom(@RequestBody WsdCertiDloadAuditStatisticSelectCondition wsdCertiDloadAuditStatisticSelectCondition) {
        return wsdCertiDloadAuditStatisticService.ConditionFilterwsdCertiDloadAuditStatisticSort_1Page_order_custom(wsdCertiDloadAuditStatisticSelectCondition);
    }

    /**
     * 证书下载审核统计表格自定义查询（带分页）
     *
     * @return 查询结果
     */
    @AuditLog(moduleName = "证书下载审核统计", eventDesc = "表格自定义查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("ConditionFilterwsdCertiDloadAuditStatisticCondition_1wsdCertiDloadAuditStatisticSort_1Page")
    public ApiResponse<WsdCertiDloadAuditStatisticPageVO> ConditionFilterwsdCertiDloadAuditStatisticCondition_1wsdCertiDloadAuditStatisticSort_1Page(@RequestBody WsdCertiDloadAuditStatisticSelectCondition wsdCertiDloadAuditStatisticSelectCondition) {
        return wsdCertiDloadAuditStatisticService.ConditionFilterwsdCertiDloadAuditStatisticCondition_1wsdCertiDloadAuditStatisticSort_1Page(wsdCertiDloadAuditStatisticSelectCondition);
    }

    /**
     * 证书下载审核统计表格自定义查询（带分页）
     *
     * @return 查询结果
     */
    @AuditLog(moduleName = "证书下载审核统计", eventDesc = "表格自定义查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("ConditionFilterwsdCertiDloadAuditStatisticCondition_1wsdCertiDloadAuditStatisticSort_1Page_order_custom")
    public ApiResponse<WsdCertiDloadAuditStatisticPageVO> ConditionFilterwsdCertiDloadAuditStatisticCondition_1wsdCertiDloadAuditStatisticSort_1Page_order_custom(@RequestBody WsdCertiDloadAuditStatisticSelectCondition wsdCertiDloadAuditStatisticSelectCondition) {
        return wsdCertiDloadAuditStatisticService.ConditionFilterwsdCertiDloadAuditStatisticCondition_1wsdCertiDloadAuditStatisticSort_1Page_order_custom(wsdCertiDloadAuditStatisticSelectCondition);
    }
    /**
     * 证书下载审核统计表格导出数据（默认全部）
     *
     * @return 查询结果
     */
    @AuditLog(moduleName = "证书下载审核统计", eventDesc = "表格自定义查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("ConditionFilterwsdCertiDloadAuditStatisticCondition_1wsdCertiDloadAuditStatisticSort_1_order_custom")
    public ApiResponse<WsdCertiDloadAuditStatisticPageVO> ConditionFilterwsdCertiDloadAuditStatisticCondition_1wsdCertiDloadAuditStatisticSort_1_order_custom(@RequestBody WsdCertiDloadAuditStatisticSelectCondition wsdCertiDloadAuditStatisticSelectCondition) {
        return wsdCertiDloadAuditStatisticService.ConditionFilterwsdCertiDloadAuditStatisticCondition_1wsdCertiDloadAuditStatisticSort_1_order_custom(wsdCertiDloadAuditStatisticSelectCondition);
    }
}
